package org.bigjava.novelplatform.service;

import org.bigjava.novelplatform.entity.Books;
import org.bigjava.novelplatform.entity.Writer;

import java.util.List;

/*作者权限操作-管理书籍*/
public interface AuthorBookService {

    /*发布书籍*/
    boolean publishBooks(Books books, Integer id);

    /*逻辑删除一本已发布发布的书*/
    boolean deleteBooks(Books books);

    /*下架一本已上架发布的书*/
    boolean unavailableBooks(Books books);

    /*修改一本书的信息*/
    boolean reviseBooks(Books books);

    /*查询这个作者发布的书籍(未删除的)*/
    List<Books> queryBooks(Writer writer,Boolean b);

    /*查询这个作者发布的书籍(已删除的)*/
    List<Books> queryBooksDeleted(Writer writer);

}
